package com.ten.mall.vo;

import java.util.ArrayList;
import java.util.List;

public class YaodianExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YaodianExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andHouseNameIsNull() {
            addCriterion("house_name is null");
            return (Criteria) this;
        }

        public Criteria andHouseNameIsNotNull() {
            addCriterion("house_name is not null");
            return (Criteria) this;
        }

        public Criteria andHouseNameEqualTo(String value) {
            addCriterion("house_name =", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameNotEqualTo(String value) {
            addCriterion("house_name <>", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameGreaterThan(String value) {
            addCriterion("house_name >", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameGreaterThanOrEqualTo(String value) {
            addCriterion("house_name >=", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameLessThan(String value) {
            addCriterion("house_name <", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameLessThanOrEqualTo(String value) {
            addCriterion("house_name <=", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameLike(String value) {
            addCriterion("house_name like", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameNotLike(String value) {
            addCriterion("house_name not like", value, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameIn(List<String> values) {
            addCriterion("house_name in", values, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameNotIn(List<String> values) {
            addCriterion("house_name not in", values, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameBetween(String value1, String value2) {
            addCriterion("house_name between", value1, value2, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseNameNotBetween(String value1, String value2) {
            addCriterion("house_name not between", value1, value2, "houseName");
            return (Criteria) this;
        }

        public Criteria andHouseAddressIsNull() {
            addCriterion("house_address is null");
            return (Criteria) this;
        }

        public Criteria andHouseAddressIsNotNull() {
            addCriterion("house_address is not null");
            return (Criteria) this;
        }

        public Criteria andHouseAddressEqualTo(String value) {
            addCriterion("house_address =", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressNotEqualTo(String value) {
            addCriterion("house_address <>", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressGreaterThan(String value) {
            addCriterion("house_address >", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressGreaterThanOrEqualTo(String value) {
            addCriterion("house_address >=", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressLessThan(String value) {
            addCriterion("house_address <", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressLessThanOrEqualTo(String value) {
            addCriterion("house_address <=", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressLike(String value) {
            addCriterion("house_address like", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressNotLike(String value) {
            addCriterion("house_address not like", value, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressIn(List<String> values) {
            addCriterion("house_address in", values, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressNotIn(List<String> values) {
            addCriterion("house_address not in", values, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressBetween(String value1, String value2) {
            addCriterion("house_address between", value1, value2, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseAddressNotBetween(String value1, String value2) {
            addCriterion("house_address not between", value1, value2, "houseAddress");
            return (Criteria) this;
        }

        public Criteria andHouseDetailIsNull() {
            addCriterion("house_detail is null");
            return (Criteria) this;
        }

        public Criteria andHouseDetailIsNotNull() {
            addCriterion("house_detail is not null");
            return (Criteria) this;
        }

        public Criteria andHouseDetailEqualTo(String value) {
            addCriterion("house_detail =", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailNotEqualTo(String value) {
            addCriterion("house_detail <>", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailGreaterThan(String value) {
            addCriterion("house_detail >", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailGreaterThanOrEqualTo(String value) {
            addCriterion("house_detail >=", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailLessThan(String value) {
            addCriterion("house_detail <", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailLessThanOrEqualTo(String value) {
            addCriterion("house_detail <=", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailLike(String value) {
            addCriterion("house_detail like", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailNotLike(String value) {
            addCriterion("house_detail not like", value, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailIn(List<String> values) {
            addCriterion("house_detail in", values, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailNotIn(List<String> values) {
            addCriterion("house_detail not in", values, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailBetween(String value1, String value2) {
            addCriterion("house_detail between", value1, value2, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHouseDetailNotBetween(String value1, String value2) {
            addCriterion("house_detail not between", value1, value2, "houseDetail");
            return (Criteria) this;
        }

        public Criteria andHousePicIsNull() {
            addCriterion("house_pic is null");
            return (Criteria) this;
        }

        public Criteria andHousePicIsNotNull() {
            addCriterion("house_pic is not null");
            return (Criteria) this;
        }

        public Criteria andHousePicEqualTo(String value) {
            addCriterion("house_pic =", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicNotEqualTo(String value) {
            addCriterion("house_pic <>", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicGreaterThan(String value) {
            addCriterion("house_pic >", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicGreaterThanOrEqualTo(String value) {
            addCriterion("house_pic >=", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicLessThan(String value) {
            addCriterion("house_pic <", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicLessThanOrEqualTo(String value) {
            addCriterion("house_pic <=", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicLike(String value) {
            addCriterion("house_pic like", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicNotLike(String value) {
            addCriterion("house_pic not like", value, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicIn(List<String> values) {
            addCriterion("house_pic in", values, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicNotIn(List<String> values) {
            addCriterion("house_pic not in", values, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicBetween(String value1, String value2) {
            addCriterion("house_pic between", value1, value2, "housePic");
            return (Criteria) this;
        }

        public Criteria andHousePicNotBetween(String value1, String value2) {
            addCriterion("house_pic not between", value1, value2, "housePic");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkIsNull() {
            addCriterion("house_remark is null");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkIsNotNull() {
            addCriterion("house_remark is not null");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkEqualTo(String value) {
            addCriterion("house_remark =", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkNotEqualTo(String value) {
            addCriterion("house_remark <>", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkGreaterThan(String value) {
            addCriterion("house_remark >", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("house_remark >=", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkLessThan(String value) {
            addCriterion("house_remark <", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkLessThanOrEqualTo(String value) {
            addCriterion("house_remark <=", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkLike(String value) {
            addCriterion("house_remark like", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkNotLike(String value) {
            addCriterion("house_remark not like", value, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkIn(List<String> values) {
            addCriterion("house_remark in", values, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkNotIn(List<String> values) {
            addCriterion("house_remark not in", values, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkBetween(String value1, String value2) {
            addCriterion("house_remark between", value1, value2, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHouseRemarkNotBetween(String value1, String value2) {
            addCriterion("house_remark not between", value1, value2, "houseRemark");
            return (Criteria) this;
        }

        public Criteria andHousePersonIsNull() {
            addCriterion("house_person is null");
            return (Criteria) this;
        }

        public Criteria andHousePersonIsNotNull() {
            addCriterion("house_person is not null");
            return (Criteria) this;
        }

        public Criteria andHousePersonEqualTo(String value) {
            addCriterion("house_person =", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonNotEqualTo(String value) {
            addCriterion("house_person <>", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonGreaterThan(String value) {
            addCriterion("house_person >", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonGreaterThanOrEqualTo(String value) {
            addCriterion("house_person >=", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonLessThan(String value) {
            addCriterion("house_person <", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonLessThanOrEqualTo(String value) {
            addCriterion("house_person <=", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonLike(String value) {
            addCriterion("house_person like", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonNotLike(String value) {
            addCriterion("house_person not like", value, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonIn(List<String> values) {
            addCriterion("house_person in", values, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonNotIn(List<String> values) {
            addCriterion("house_person not in", values, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonBetween(String value1, String value2) {
            addCriterion("house_person between", value1, value2, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePersonNotBetween(String value1, String value2) {
            addCriterion("house_person not between", value1, value2, "housePerson");
            return (Criteria) this;
        }

        public Criteria andHousePhoneIsNull() {
            addCriterion("house_phone is null");
            return (Criteria) this;
        }

        public Criteria andHousePhoneIsNotNull() {
            addCriterion("house_phone is not null");
            return (Criteria) this;
        }

        public Criteria andHousePhoneEqualTo(String value) {
            addCriterion("house_phone =", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneNotEqualTo(String value) {
            addCriterion("house_phone <>", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneGreaterThan(String value) {
            addCriterion("house_phone >", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneGreaterThanOrEqualTo(String value) {
            addCriterion("house_phone >=", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneLessThan(String value) {
            addCriterion("house_phone <", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneLessThanOrEqualTo(String value) {
            addCriterion("house_phone <=", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneLike(String value) {
            addCriterion("house_phone like", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneNotLike(String value) {
            addCriterion("house_phone not like", value, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneIn(List<String> values) {
            addCriterion("house_phone in", values, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneNotIn(List<String> values) {
            addCriterion("house_phone not in", values, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneBetween(String value1, String value2) {
            addCriterion("house_phone between", value1, value2, "housePhone");
            return (Criteria) this;
        }

        public Criteria andHousePhoneNotBetween(String value1, String value2) {
            addCriterion("house_phone not between", value1, value2, "housePhone");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}